package com.aisile.admin.service;

import com.aisile.model.admin.dtos.ChannelDto;
import com.aisile.model.admin.pojos.AdChannel;
import com.aisile.model.common.dtos.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Auther:yry
 * @Date:2023/12/20 0020
 * @VERSON:1.0
 */
public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据名称模糊查询 以及 分页
     *
     * @param dto
     * @return
     */
    public ResponseResult findAllByPage(ChannelDto dto);

    /**
     * 添加频道
     *
     * @param adChannel
     * @return
     */
    public ResponseResult saveAdChannel(AdChannel adChannel);

    /**
     *
     * @param adChannel
     * @return
     */
    public ResponseResult updateAdChannel(AdChannel adChannel);

    /**
     *
     * @param id
     * @param type
     * @return
     */
    public ResponseResult updateStatusByType(Integer id, Integer type);

    /**
     *
     * @param id
     * @return
     */
    public ResponseResult deleteAdChannelById(Integer id);

}
